/*
#	Fastfoo - CMS developer under CakePHP / http://fast-foo.com
#	Copyright (C) 2010  Antonio Irlandés García

#	This program is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.

#	This program is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.

#	You should have received a copy of the GNU General Public License
#	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/* first level */
ul.menu {
	margin:0;
	padding:0;
	list-style:none;
	height:32px;
	width:900px;
}

ul.menu li {
	position: relative;
	float: left;
}

ul.menu li:hover{
	background-image:url('../../img/admin/bg_nav_hover.png');
}

ul.menu li:hover a{
	color:#fff;
}

ul.menu li a {
	font-weight:bold;
	display: inline-block;
	height:14px;
	text-decoration:none;
	color:#fff;
	font-size:11px;
	text-transform: uppercase;
	padding: 10px 15px 8px 15px;
	line-height:14px;
}


ul.menu li.last a {
}

ul.menu li a.sub {
	padding-right: 20px;
	background-image:url('../../img/admin/arrow_menu.png');
	background-repeat:no-repeat;
	background-position:right 16px ;
}

ul.menu li a.sub:hover {
	color:#397AB0;
	background-image:none;
	background-color:#fff;
}

ul.menu li a.active {
	color: #fff;
	background-image:url('../../img/admin/bg_nav_selected.png');
}

/* second level */
ul.menu ul {
	position:absolute;
	z-index:100;
	padding: 0;
	margin: 0;
	list-style: none;
}

/* submenu markup */
ul.menu li li {
	margin:0;
	margin-left:1px;
	width:140px;
	background-image:none;
	background-color:#fff;
	border-bottom:1px dotted #ccc;
	border-left:1px solid #ccc;
	border-right:1px solid #ccc;
}

ul.menu li li a {
	color:#888;
	text-transform: capitalize;
	font-weight:normal;
	height:14px;
	text-align:left;
	padding:6px 10px 6px 12px;
	font-size:12px;
}

ul.menu li:hover li,
ul.menu li:hover li a{
	background-image:none;
	background-color:#fff;
	color:#888;
}

ul.menu li li.last {
	border-bottom:1px solid #ccc;
}

ul.menu li:hover li:hover a{
	color:#444;
}

/* hiding fifth level */
div#nav ul ul ul ul ul {
	display: none;
}

/* show hide behaviour */
ul.menu ul,
ul.menu li:hover ul ul,
ul.menu ul ul,
ul.menu li:hover ul ul ul,
ul.menu ul ul ul,
ul.menu li:hover ul ul ul ul {
	position: absolute;
	left: -999em;
}

ul.menu li:hover ul,
ul.menu li li:hover ul,
ul.menu li li li:hover ul,
ul.menu li li li li:hover ul {
	left: -1px;
	z-index: 999;
}

ul.menu li.hover ul ul,
ul.menu li.hover ul ul ul,
ul.menu li.hover ul ul ul ul {
	position: absolute;
	left: -999em;
}

ul.menu li.hover ul,
ul.menu li li.hover ul,
ul.menu li li li.hover ul,
ul.menu li li li li.hover ul {
	left: -1px;
	z-index: 999;
}
